package com.haojiang.mh.service.entity;

/**
 * Created by ZapFive on 2019-05-25.
 * <p>
 * wuzhuang@mirahome.me
 */
public class StartEndStateBean {
    private String start;
    private String end;
    //deep           0
    //light          1
    //rem            2
    //awake          3
    //leave          4
    //heartbeat_stop 5
    private int status;

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public int getStatus() {
//        switch (status) {
//            case "deep":
//                return 0;
//            case "light":
//                return 1;
//            case "rem":
//                return 2;
//            case "awake":
//                return 3;
//            case "leave":
//                return 4;
//            case "heartbeat_stop":
//                return 5;
//        }
        return status-1;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "StartEndStateBean{" +
                "start='" + start + '\'' +
                ", end='" + end + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
